<template>
    <div class="header">
      <router-link to="/">
      <div class="header-left">
        <div class="iconfont">&#xe60e;</div>
      </div>
      </router-link>
      <div class="header-title">城市选择</div>
    </div>
</template>

<script>
export default {
  name: 'CityHeader'
}
</script>

<style lang="stylus" scoped>
  @import "~styles/variables.styl"
.header
  position: relative
  overflow: hidden
  height:$headerHeight;
  line-height: $headerHeight;
  background-color: $themColor
  color: #fff
  font-size: .3rem
  .header-left
    display: inline-block
    width: .64rem;
    padding-right: .2rem;
    text-align: center;
    color: #fff
  .header-title
    position: absolute
    left: .64rem
    right: .64rem
    display: inline-block
    width: auto
    margin: 0
    text-align: center
    overflow: hidden
    white-space: nowrap;
    text-overflow: ellipsis;
</style>
